﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Oliving.Edge.Model.Dto.Xcx
{
    public class xUserLogin
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true, ColumnDescription = " 用户ID ")]
        public int uID { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true, ColumnDescription = " 真实姓名 ")]
        public string uRealName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnDescription = " 状态 ")]
        public int uStatus { get; set; }
        // 性别
        [SugarColumn(IsNullable = true, ColumnDescription = " 性别 ")]
        public int sex { get; set; } = 0;
        // 年龄
        [SugarColumn(IsNullable = true, ColumnDescription = " 年龄 ")]
        public int age { get; set; }
        // 生日
        [SugarColumn(IsNullable = true, ColumnDescription = " 生日 ")]
        public DateTime birth { get; set; } = DateTime.Now;
        // 地址
        [SugarColumn(ColumnDataType = "nvarchar", Length = 200, IsNullable = true, ColumnDescription = " 地址 ")]
        public string addr { get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = " 地址 ")]
        public bool tdIsDelete { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<int> RIDs { get; set; }
        [SugarColumn(IsIgnore = true)]
        public List<string> RoleNames { get; set; }
        /// <summary>
        /// 微信号
        /// </summary>
        public string wechat { get; set;}
        /// <summary>
        /// 手机号
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        ///  部门编号
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "部门编号")]
        public int DeptID { get; set; } = 0;


        [SugarColumn(IsIgnore = true)]
        public string SysDepartmentModelDeptName { get; set; }
    }
}
